![]() |
PBOpenWDAsync |
||||
Header: | Files.h | Carbon status: | Unsupported | |
Creates a working directory.
OSErr PBOpenWDAsync ( WDPBPtr paramBlock );
A pointer to a working directory parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion function.
On output, the result code of the function.
On input, a pointer to a pathname.
A volume specification.
On input, the working directory user identifier.
On input, the working directory’s directory ID.
The PBOpenWDAsync function creates a working directory that corresponds to the directory specified by ioVRefNum, ioWDDirID, and ioWDProcID. (You can also specify the directory using a combination of partial pathname and directory ID.) PBOpenWDAsync returns in ioVRefNum a working directory reference number that can be used in subsequent File Manager calls.
If a working directory having the specified user identifier already exists for the specified directory, no new working directory is opened; instead, the existing working directory reference number is returned in ioVRefNum. If the specified directory already has a working directory with a different user identifier, a new working directory reference number is returned.
If the directory specified by the ioWDDirID parameter is the volume’s root directory, no working directory is created; instead, the volume reference number is returned in the ioVRefNum parameter.
Not supported in Carbon. Not available in Carbon.
Working directories not supported. Use file system specification (FSSpec) records instead.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)